<include file="Public:header" />

<div id="home">

    <div id="header">

        <div style="height:28px; padding-top:10px; background:url(__PUBLIC__/Front/images/xy.png) 10px 8px no-repeat" class="logo"><span onclick=" history.go(-1);">&nbsp;</span></div>

        <div class="shoptitle"><span>银行卡资料</span></div>

        <include file="Public:righttop" />

    </div>

</div>

<include file="Public:procat" />

<style type="text/css">

    .pw,.pwt{
        height:32px; line-height:normal;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #fff; padding:0 5px;
        -moz-border-radius:5px;/*仅Firefox支持，实现圆角效果*/
        -webkit-border-radius:5px;/*仅Safari,Chrome支持，实现圆角效果*/
        -khtml-border-radius:5px;/*仅Safari,Chrome支持，实现圆角效果*/
        border-radius:5px;/*仅Opera，Safari,Chrome支持，实现圆角效果*/
        font-size:12px
    }

    .pw{ width:90%;}

    table td{font-size:14px}

</style>


<div id="main" style="">

    <div style="padding:10px 0; background:#f5f5f5; overflow:hidden;">

        <form name="form_editcard" id="form_editcard" action="" method="post">

            <input type="hidden"  name="id" value='{$bankcard.id}' />

            <input type="hidden"  name="default" value='{$bankcard.is_default}' />


            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="line-height:40px;">

                <tr>
                    <td width="25%" align="right" style="padding-bottom:2px;"><b class="cr2">*</b> 开户银行：</td>
                    <td width="75%" align="left" style="padding-bottom:2px;">
                        <input type="text" value="{$bankcard.bank_name}" placeholder="开户行"  name="bank_name"  class="pw"/>
                    </td>
                </tr>

                <tr>
                    <td width="25%" align="right" style="padding-bottom:2px;"><b class="cr2">*</b> 支&emsp;&emsp;行：</td>
                    <td width="75%" align="left" style="padding-bottom:2px;">
                        <input type="text" value="{$bankcard.province}" placeholder="所在省" name="province" style="width:20%" class="pw"/>
                        <input type="text" value="{$bankcard.city}" placeholder="所在城市" name="city"  style="width:20%" class="pw"/>
                        <input type="text" value="{$bankcard.branch}" placeholder="支行名" name="branch"  style="width:30%" class="pw"/>
                    </td>
                </tr>

                <tr>
                    <td width="25%" align="right" style="padding-bottom:2px;"><b class="cr2">*</b> 真实姓名：</td>
                    <td width="75%" align="left" style="padding-bottom:2px;">
                        <input type="text" value="{$bankcard.account_name}" placeholder="真实姓名" name="account_name"  class="pw"/></td>
                </tr>

                <tr>
                    <td width="25%" align="right" style="padding-bottom:2px;"><b class="cr2">*</b> 银行卡号：</td>
                    <td width="75%" align="left" style="padding-bottom:2px;">
                        <input id="account_bank" type="text" value="{$bankcard.account_bank}"  placeholder="银行卡号"  name="account_bank"  class="pw"/>
                    </td>
                <script type="text/javascript">

                    window.onload = function () {

                        document.getElementById("account_bank").onkeyup = function () {

                            this.value = this.value.replace(/\s/g, '').replace(/(\d{4})(?=\d)/g, "$1 ");

                        };

                    };

                </script>
                </tr>

                <tr>
                    <td width="25%" align="right" style="padding-bottom:2px;"><b class="cr2">*</b> 手机号码：</td>
                    <td width="75%" align="left" style="padding-bottom:2px;">
                        <input type="text" value="{$bankcard.phone}"  placeholder="手机号码"  name="phone"  class="pw"/>
                    </td>
                </tr>

                <tr>
                    <td width="25%" align="right" style="padding-bottom:2px;"><b class="cr2">*</b> 设置默认：</td>
                    <td width="75%" align="left" style="padding-bottom:2px;">
                        <input type="radio" name='is_default' value="0" checked=" <php> if($bankcard.is_default == 0) echo 'checked'; </php> " /> 否

                        <input type="radio" name='is_default' value="1" checked=" <php> if($bankcard.is_default == 0) echo 'checked'; </php> " /> 是
                    </td>
                </tr>

                <tr>
                    <td align="center" style="padding-top:10px;" colspan="2">
                        <a href="javascript:;" onclick="$('#form_editcard').submit();" style="position:fixed;bottom:57px;max-width: 620px;width:100%; border-radius:5px;display:block;background:#DB383E;cursor:pointer; height:40px; line-height:40px; font-size:14px; color:#FFF">确认提交</a>
                    </td>
                </tr>

            </table>

        </form>

    </div>

</div>

<include file="Public:footer" />